
var _c = _h = 0;
$(document).ready(function () {
    $('#play > li').click(function(){
        var i = $(this).attr('alt') - 1;
        clearInterval(_h);
        _c = i;
        //play();
        change(i);       
    })
    $("#pic img").hover(
    	function(){clearInterval(_h)}, 

    	function(){play()});
    play();
})
function play()
{
    _h = setInterval("auto()", 3000);

}
function change(i)
{
    $("#pic img").hide().eq(i).show();
}
function auto()
{   
    _c = _c > 3 ? 0 : _c + 1;

    change(_c);
}
/*banner images change end*/


// $(function(){
// 	$(".hot_left ul li").hover(
// 		function(){$(this).css("border","1px solid #CC9900")},
// 		function(){$(this).css("border","1px solid #ccc")}
// 		);
// 		$(".recom_img").hover(
// 		function(){$(this).css("border","1px solid red")},
// 		function(){$(this).css("border","1px solid #ccc")}
// 		);
// });

function Proworks(id) 
{
	document.getElementById('pro_a1').className = '';
	document.getElementById('pro_a2').className = '';
	document.getElementById('pro_a3').className = '';
	document.getElementById('pro_a4').className = '';

	document.getElementById('works1').style.display='none';
	document.getElementById('works2').style.display='none';
	document.getElementById('works3').style.display='none';
	document.getElementById('works4').style.display='none';
	
	document.getElementById('pro_a'+id).className = 'current';
	document.getElementById('works'+id).style.display='';
}

//底部弹出餐单
$(document).ready(function(){
$(".select_pro").hover(
	function(){$(this).find(".son_ul").stop(true,true).slideDown(300)},
	function(){$(this).find(".son_ul").slideUp(300)})
});